package com.youtui.manager.service;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.github.pagehelper.PageInfo;
import com.youtui.common.constant.ResultMessage;
import com.youtui.manager.entity.WithdrawalEntity;
import com.youtui.manager.model.Account;

public interface IWithdrawalService {

	public Integer add(Account account, BigDecimal applymoney);

	/**
	 * 分页显示
	 * 
	 * @param mobile
	 * @param bankNo
	 * @param applyDate
	 * @param page
	 * @param rows
	 * @return
	 */
	public PageInfo<WithdrawalEntity> findWithdrawalPageList(String mobile, String bankNo, Date applyDate, int page,
			int rows);

	public PageInfo<WithdrawalEntity> findWithdrawalPageList(Long devId, int page, int rows);

	public List<WithdrawalEntity> findWithdrawalList(Long devId ,String mobile, String bankNo, Date applyDate);

	/**
	 * 加载体现审核信息
	 * 
	 * @param id
	 * @return
	 */
	public WithdrawalEntity loadWithdrawal(Long id);

	/**
	 * 提现审核
	 * 
	 * @param id
	 * @param auditType
	 * @param auditInfo
	 */
	public ResultMessage checkWithdrwal(Long id, Integer auditType, String auditInfo);

	/**
	 * 提现审核
	 * 
	 * @param id
	 * @param auditType
	 * @param auditInfo
	 */
	public ResultMessage confirmWithdrawal(Long id, Integer auditType, String auditInfo);

}
